﻿// Program
// FLMScan entry point
// 
// FLMScan - Featured by FabLab Munich
// Author: Robert Meisenecker
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace FLMScan
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form1 form = new Form1();

            try
            {
                FLMScan flmScan = FLMScanFactory.Make(FLMScanInstanceType.EProductional, form);

                Application.Run(form);    
            }
            catch (ArgumentNullException ex)
            {
                MessageBox.Show("FLMScan instance could not be initialized! " + ex.ToString());
            }
        }
    }
}
